package application.employee.repository;

import application.employee.model.Employee;
import application.employee.model.EmployeeDetail;

import java.util.Collection;

/**
 * 雇员 数据层自定义接口
 *
 * @author roamer
 * @version V1.0
 * @date 2019-03-03 14:36
 */
public interface EmployeeRepositoryCustom {

    /**
     * 查询全部
     *
     * @return {@code Collection<Employee>} 雇员列表
     */
    Collection<Employee> queryAll();

    /**
     * 更新
     *
     * @param detail 雇员详细信息
     *
     * @return {@code Employee} 雇员信息
     */
    Employee updateEmployee(EmployeeDetail detail);
}
